package com.example.mapper;

import com.example.pojo.Permissions;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PermissionsMapper {

    @Insert("insert into permissions(real_name, id_card, id_u, id_cardz, id_cardf) values (#{realName},#{idCard}, #{idU},#{idCardz},#{idCardf})")
    void realName(Permissions permissions);

    @Select("select * from permissions where id_u=#{idU}")
    Permissions getidCard(Integer idU);
}
